/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Emes_Dc_Input_Page (stored in table Emes_Dc_Input_Page).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesDcInputPage extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emes_Dc_Input_Page";
    public static final String ENTITY_NAME = "Emes_Dc_Input_Page";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_NAME = "name";
    public static final String PROPERTY_SOURCESQL = "sourceSql";
    public static final String PROPERTY_CLASSNAME = "className";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_EMESPROCESSOPR = "emesProcessOpr";
    public static final String PROPERTY_MODEL = "model";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_BATCHINFO = "batchInfo";
    public static final String PROPERTY_RESULTTYPE = "resultType";
    public static final String PROPERTY_SQL = "sql";
    public static final String PROPERTY_FAILSQL = "failSql";
    public static final String PROPERTY_REWORKSQL = "reworkSql";
    public static final String PROPERTY_SHOWHISTORY = "showHistory";
    public static final String PROPERTY_ADDMATERIAL = "addMaterial";
    public static final String PROPERTY_FACILITES = "facilites";
    public static final String PROPERTY_EXEFINISH = "exeFinish";
    public static final String PROPERTY_EXERESULT = "exeResult";
    public static final String PROPERTY_REFRESH = "refresh";
    public static final String PROPERTY_SCANUSER = "scanUser";
    public static final String PROPERTY_SCANFACILITIES = "scanFacilities";
    public static final String PROPERTY_EMESDCINPUTDATALIST = "emesDcInputDataList";
    public static final String PROPERTY_EMESDCINPUTPAGEMXLIST = "emesDcInputPageMxList";

    public EmesDcInputPage() {
        setDefaultValue(PROPERTY_TYPE, "MANU");
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_CREATIONDATE, new Date());
        setDefaultValue(PROPERTY_UPDATED, new Date());
        setDefaultValue(PROPERTY_SHOWHISTORY, false);
        setDefaultValue(PROPERTY_ADDMATERIAL, false);
        setDefaultValue(PROPERTY_FACILITES, false);
        setDefaultValue(PROPERTY_EXEFINISH, false);
        setDefaultValue(PROPERTY_EXERESULT, false);
        setDefaultValue(PROPERTY_REFRESH, false);
        setDefaultValue(PROPERTY_SCANUSER, false);
        setDefaultValue(PROPERTY_SCANFACILITIES, false);
        setDefaultValue(PROPERTY_EMESDCINPUTDATALIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESDCINPUTPAGEMXLIST, new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public String getName() {
        return (String) get(PROPERTY_NAME);
    }

    public void setName(String name) {
        set(PROPERTY_NAME, name);
    }

    public String getSourceSql() {
        return (String) get(PROPERTY_SOURCESQL);
    }

    public void setSourceSql(String sourceSql) {
        set(PROPERTY_SOURCESQL, sourceSql);
    }

    public String getClassName() {
        return (String) get(PROPERTY_CLASSNAME);
    }

    public void setClassName(String className) {
        set(PROPERTY_CLASSNAME, className);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public EmesProcessOpr getEmesProcessOpr() {
        return (EmesProcessOpr) get(PROPERTY_EMESPROCESSOPR);
    }

    public void setEmesProcessOpr(EmesProcessOpr emesProcessOpr) {
        set(PROPERTY_EMESPROCESSOPR, emesProcessOpr);
    }

    public String getModel() {
        return (String) get(PROPERTY_MODEL);
    }

    public void setModel(String model) {
        set(PROPERTY_MODEL, model);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public String getBatchInfo() {
        return (String) get(PROPERTY_BATCHINFO);
    }

    public void setBatchInfo(String batchInfo) {
        set(PROPERTY_BATCHINFO, batchInfo);
    }

    public String getResultType() {
        return (String) get(PROPERTY_RESULTTYPE);
    }

    public void setResultType(String resultType) {
        set(PROPERTY_RESULTTYPE, resultType);
    }

    public String getSql() {
        return (String) get(PROPERTY_SQL);
    }

    public void setSql(String sql) {
        set(PROPERTY_SQL, sql);
    }

    public String getFailSql() {
        return (String) get(PROPERTY_FAILSQL);
    }

    public void setFailSql(String failSql) {
        set(PROPERTY_FAILSQL, failSql);
    }

    public String getReworkSql() {
        return (String) get(PROPERTY_REWORKSQL);
    }

    public void setReworkSql(String reworkSql) {
        set(PROPERTY_REWORKSQL, reworkSql);
    }

    public Boolean isShowHistory() {
        return (Boolean) get(PROPERTY_SHOWHISTORY);
    }

    public void setShowHistory(Boolean showHistory) {
        set(PROPERTY_SHOWHISTORY, showHistory);
    }

    public Boolean isAddMaterial() {
        return (Boolean) get(PROPERTY_ADDMATERIAL);
    }

    public void setAddMaterial(Boolean addMaterial) {
        set(PROPERTY_ADDMATERIAL, addMaterial);
    }

    public Boolean isFacilites() {
        return (Boolean) get(PROPERTY_FACILITES);
    }

    public void setFacilites(Boolean facilites) {
        set(PROPERTY_FACILITES, facilites);
    }

    public Boolean isExeFinish() {
        return (Boolean) get(PROPERTY_EXEFINISH);
    }

    public void setExeFinish(Boolean exeFinish) {
        set(PROPERTY_EXEFINISH, exeFinish);
    }

    public Boolean isExeResult() {
        return (Boolean) get(PROPERTY_EXERESULT);
    }

    public void setExeResult(Boolean exeResult) {
        set(PROPERTY_EXERESULT, exeResult);
    }

    public Boolean isRefresh() {
        return (Boolean) get(PROPERTY_REFRESH);
    }

    public void setRefresh(Boolean refresh) {
        set(PROPERTY_REFRESH, refresh);
    }

    public Boolean isScanUser() {
        return (Boolean) get(PROPERTY_SCANUSER);
    }

    public void setScanUser(Boolean scanUser) {
        set(PROPERTY_SCANUSER, scanUser);
    }

    public Boolean isScanFacilities() {
        return (Boolean) get(PROPERTY_SCANFACILITIES);
    }

    public void setScanFacilities(Boolean scanFacilities) {
        set(PROPERTY_SCANFACILITIES, scanFacilities);
    }

    @SuppressWarnings("unchecked")
    public List<EmesDcInputData> getEmesDcInputDataList() {
      return (List<EmesDcInputData>) get(PROPERTY_EMESDCINPUTDATALIST);
    }

    public void setEmesDcInputDataList(List<EmesDcInputData> emesDcInputDataList) {
        set(PROPERTY_EMESDCINPUTDATALIST, emesDcInputDataList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesDcInputPageMx> getEmesDcInputPageMxList() {
      return (List<EmesDcInputPageMx>) get(PROPERTY_EMESDCINPUTPAGEMXLIST);
    }

    public void setEmesDcInputPageMxList(List<EmesDcInputPageMx> emesDcInputPageMxList) {
        set(PROPERTY_EMESDCINPUTPAGEMXLIST, emesDcInputPageMxList);
    }

}
